<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>报价方案配置属性详情</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
	<form id="formSet1">
		<div class="fieldset1 tabel_col clearFix">
			<div class="fieldBox col_33">
				<div class="label">业务类型</div>
				<div class="field">
					<span name="bizTypCdNm" id="bizTypCdNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">项目类型</div>
				<div class="field">
					<span name="prjTypCdNm" id="prjTypCdNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">业务来源</div>
				<div class="field">
					<span name="bizResCdNm" id="bizResCdNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">省</div>
				<div class="field">
					<span name="rgnPrCdNm" id="rgnPrCdNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_66">
				<div class="label">市</div>
				<div class="field">
					<span name="rgnCyCdNm" id="rgnCyCdNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">经销商类型</div>
				<div class="field">
					<span name="splTypCdNm" id="splTypCdNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">是否团单</span></div>
				<div class="field">
					<span name="isGrpOrderNm" id="isGrpOrderNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">产品品牌</div>
				<div class="field">
					<span name="brCdNm" id="brCdNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_100">
				<div class="label">产品类型</div>
				<div class="field">
					<span name="prdTypCdNm" id="prdTypCdNm">&nbsp;</span>
				</div>
			</div>
			<%-- <div class="fieldBox col_66_auto">
				<div class="label">区域</div>
				<div class="field">
					<jsp:include page="../../system/sysRegion/region.jsp" flush="true" >
						<jsp:param name="rgnLvl" value="2"/>
					</jsp:include>
					<input type="checkbox" id="rgn_flag" name="rgn_flag"/>
				</div>
			</div> --%>
			<div class="fieldBox col_100_auto">
				<div class="label">供应商</div>
				<div class="field">
					<span name="splIdsNm" id="splIdsNm">&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_100_auto">
				<div class="label">产品型号</div>
				<div class="field">
					<span name="prdMdlsNm" id="prdMdlsNm">&nbsp;</span>
					<input name="prpsCfgId" id="prpsCfgId" type="hidden" value="${prpsCfgId }">
				</div>
			</div>
		</div>
	</form>
</div>

<script type="text/javascript">
var attrGrid;
$(function(){
	$('#formSet1').ligerForm({
        validate : true
	});
	initData();
});
	
	function initData(){
		var prpsCfgId = $("#prpsCfgId").val();
		if(!prpsCfgId){
			//chahgeItemStatus(true);
			return;
		}
    	var _url = '<%=path%>/project/prjQuatPrpsAttr/getById.do';
    	$.ajax({
    		type: 'get',
    		dataType:'json',
    		data:{prpsCfgId:prpsCfgId},
    		url: _url,
    		success:function(msg){
    			 if(msg.success == 1){
    				 setData(msg.data);//设置数据
    				 console.log(msg.data);
    			 }else{
    				 $.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
    			 }
    		}
    	});
   	}
		
	function setData(data){
		$("#bizTypCdNm").html(data.bizTypCdNm);
		$("#prjTypCdNm").html(data.prjTypCdNm);
		$("#bizResCdNm").html(data.bizResCdNm);
		$("#splTypCdNm").html(data.splTypCdNm);
		$("#isGrpOrderNm").html(data.isGrpOrderNm);
		$("#brCdNm").html(data.brCdNm);
		$("#prdTypCdNm").html(data.prdTypCdNm);
		$("#splIdsNm").html(data.splIdsNm);
		$("#prdMdlsNm").html(data.prdMdlsNm);
		$("#rgnPrCdNm").html(data.rgnPrCdNm);
		$("#rgnCyCdNm").html(data.rgnCyCdNm);
		
		
		
		/* $("#bizTypCd").ligerGetComboBoxManager().selectValue(data.bizTypCd);
		$("#bizTypCd").ligerGetComboBoxManager().updateStyle();
		if(data.bizTypCd_flag=="1"){
			liger.get("bizTypCd_flag").setValue(true);
		}
		
		$("#prjTypCd").ligerGetComboBoxManager().selectValue(data.prjTypCd);
		$("#prjTypCd").ligerGetComboBoxManager().updateStyle();
		if(data.prjTypCd_flag=="1"){
			liger.get("prjTypCd_flag").setValue(true);
		}
		
		$("#bizResCd").ligerGetComboBoxManager().selectValue(data.bizResCd);
		$("#bizResCd").ligerGetComboBoxManager().updateStyle();
		if(data.bizResCd_flag=="1"){
			liger.get("bizResCd_flag").setValue(true);
		}
		
		$("#splTypCd").ligerGetComboBoxManager().selectValue(data.splTypCd);
		$("#splTypCd").ligerGetComboBoxManager().updateStyle();
		if(data.splTypCd_flag=="1"){
			liger.get("splTypCd_flag").setValue(true);
		}
		
		$("#isGrpOrder").ligerGetComboBoxManager().selectValue(data.isGrpOrder);
		$("#isGrpOrder").ligerGetComboBoxManager().updateStyle();
		if(data.isGrpOrder_flag=="1"){
			liger.get("isGrpOrder_flag").setValue(true);
		}
		
		$("#brCd").ligerGetComboBoxManager().selectValue(data.brCd);
		$("#brCd").ligerGetComboBoxManager().updateStyle();
		if(data.brCd_flag=="1"){
			liger.get("brCd_flag").setValue(true);
		}
		
		$("#prdTypCd").ligerGetComboBoxManager().selectValue(data.prdTypCd);
		$("#prdTypCd").ligerGetComboBoxManager().updateStyle();
		if(data.prdTypCd_flag=="1"){
			liger.get("prdTypCd_flag").setValue(true);
		}
		
		if(data.splIds_flag=="1"){
			liger.get("splIds_flag").setValue(true);
		}
		
		if(data.prdMdls_flag=="1"){
			liger.get("prdMdls_flag").setValue(true);
		} */
	}
</script>

</body>
</html>
